Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body><p>This is the first p element in body.</p> <p>Click the button to change the HTML content of the body element's first child node (index 0).</p> <button onclick="myFunction()">Try it</button> <script> function myFunction() { document.body.childNodes.item(0).innerHTML = "Changed!"; } </script> </body> <!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_nodelist_item by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 08:29:06 GMT --> </html>
Result:
Try it Yourself - © w3schools.com